#!/bin/bash

WEBSITE="https://www.xieziqiang.cn"

HTTP_CODE="$(curl -m 2 -sL -w %{http_code} ${WEBSITE} -o /dev/null)"

if [ $HTTP_CODE -eq 200 ];then
	echo -e "\E[1;32m$WEBSITE is health\E[0m"
else
	echo -e "\E[1;33m$WEBSITE is unhealth\E[0m"
fi
	
